﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InvoiceDetail.aspx.cs" validateRequest="false"  Inherits="WMS6.Web.Billing.InvoiceDetail" meta:resourcekey="Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>InvoiceDetail</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function() {
            initDetailPage();
        }
        
        //弹出窗口选择货主
        function selectStatement() {
            var billingObject = document.getElementById("hdnBillingObject").value;
            var billingObjectID = document.getElementById("hdnBillingObjectID").value;
            var dueFromto = document.getElementById("hdnDurFromTo").value;
            var rtnValue = popModalWindow('../Billing/StatementQuery.aspx?from=Invoice&action=txtStatementID&BillingObject=' + escape(billingObject) +'&BillingObjectID='+escape(billingObjectID)+'&DueFromTo='+escape(dueFromto), 'dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if (rtnValue != null && rtnValue.toString() != "") {
                document.getElementById("txtStatementID").focus();
                document.getElementById("txtStatementID").value = rtnValue;
                 __doPostBack("txtStatementID_TextChanged","");
                document.getElementById("txtPayMethod").focus();
            }
        }
    </script>

</head>
<body>
    <form id="F9213" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblInvoiceDetail" runat="server" CssClass="label_header" 
                            Text="发票明细" meta:resourcekey="lblInvoiceDetail"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnCancel" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnCancel %>" AccessKey="c"
                            OnClick="btnCancel_Click" Enabled="False" 
                            meta:resourcekey="btnCancelResource1"  />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnSave %>" AccessKey="s"
                            OnClick="btnSave_Click" Enabled="False" 
                            meta:resourcekey="btnSaveResource1"/>
                    </td>
                    <td>
                        <asp:Button ID="btnSaveContinue" runat="server" CssClass="button" 
                            Text="<%$ Resources:ButtonResource,btnSaveContinue %>" AccessKey="s"
                            OnClick="btnSaveContinue_Click" Enabled="False" 
                            meta:resourcekey="btnSaveContinueResource1"/>
                    </td>
                </tr>
            </table>
        </div>
        <asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" 
                meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,2)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" 
                    meta:resourcekey="one1">基本信息</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblLineID" runat="server" CssClass="label" Text="行号" 
                                meta:resourcekey="lblLineID"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblStatementID" runat="server" CssClass="label" Text="对账单号" 
                                meta:resourcekey="lblStatementID"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblPayMethod" runat="server" CssClass="label" Text="收/付款方式" 
                                meta:resourcekey="lblPayMethod"></asp:Label>
                        </td>
                        <td width="180">
                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtLineID" runat="server" CssClass="textbox" MaxLength="15" 
                                 Enabled = "False" meta:resourcekey="txtLineID"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtStatementID" runat="server" CssClass="textbox" 
                                meta:resourcekey="txtStatementID" AutoPostBack="True"
                                ontextchanged="txtStatementID_TextChanged"></asp:TextBox><img
                                src="../Images/icon_find.gif" id="imgStatementID" runat="server" alt="select one item"
                                class="img" onclick="selectStatement();" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtPayMethod" runat="server" CssClass="textbox" MaxLength="30" 
                                  meta:resourcekey="txtPayMethod"></asp:TextBox>
                        </td>
                        <td>

                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblAvailAmount" runat="server" CssClass="label" Text="可开票金额" 
                                meta:resourcekey="lblAvailAmount"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblInvoiceType" runat="server" CssClass="label" Text="开票费用" 
                                meta:resourcekey="lblInvoiceType"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblInvoiceAmount" runat="server" CssClass="label" 
                                Text="开票金额" meta:resourcekey="lblInvoiceAmount"></asp:Label><span
                                class="must_input">*</span>
                        </td>
                        <td width="180">
                            
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtAvailAmount" runat="server" CssClass="textbox" MaxLength="9" 
                                 Enabled = "False"  meta:resourcekey="txtAvailAmount"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtInvoiceType" runat="server" CssClass="textbox" MaxLength="50" 
                                  meta:resourcekey="txtInvoiceType"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtInvoiceAmount" runat="server" CssClass="textbox" MaxLength="9" 
                                  meta:resourcekey="txtInvoiceAmount"></asp:TextBox>
                        </td>
                        <td>
    
                        </td>
                    </tr>
                    <tr>
                        <td width="180">
                            <asp:Label ID="lblStatus" runat="server" CssClass="label" Text="状态" 
                                        meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180">
                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label> 
                        </td>
                        <td width="180">
                        </td>
                        <td width="180">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td colspan="2" rowspan="3">
                             <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea"  TextMode="MultiLine" MaxLength = "100" meta:resourcekey="txtRemark"></asp:TextBox>
                        </td>
                        
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        
                        </td>
                        <td width="180">

                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td width="180">
                        
                        </td>
                        <td width="180">

                        </td>
                    </tr>
  
                   
                </table>
            </div>
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnLineID" runat="server" />
    <input type="hidden" id="hdnInvoiceID" runat="server" />
    <input type="hidden" id="hdnPayAmount" runat="server" />
    <input type="hidden" id="hdnFlag" runat="server" />
    <input type="hidden" id="hdnBillingObject" runat="server" />
    <input type="hidden" id="hdnBillingObjectID" runat="server" />
    <input type="hidden" id="hdnDurFromTo" runat="server" />
    </form>
</body>
</html>
